/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

export const styleOptions = [
  {
    value: '1',
    label: '4G打印机',
  },
  {
    value: '2',
    label: '4G打印机盒子',
  },
];

export const typeOptions = [
  {
    value: '1',
    label: '菜鸟',
  },
  {
    value: '2',
    label: '拼多多',
  },
];

export const freeDurationOptions = (() => {
  const options = [];
  let start = 1;
  while (((start = options.length + 1), start <= 6)) {
    options.push({
      value: start,
      label: `${start}个月`,
    });
  }
  return options;
})();

export const rulesMap = {
  print_type: [{ required: true, message: '请选择打印机类型' }],
  print_style: [{ required: true, message: '请选择打印机款式' }],
  print_code: [{ required: true, message: '请输入打印机编码' }],
  send_time: [{ required: true, message: '请选择赠送时长' }],
  selling_time: [{ required: true, message: '请选择售卖时间' }],
};
